/*    */ package com.wgcloud.controller;
/*    */ 
/*    */ import org.slf4j.Logger;
/*    */ import org.slf4j.LoggerFactory;
/*    */ import org.springframework.boot.system.ApplicationHome;
/*    */ import org.springframework.context.annotation.Configuration;
/*    */ import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
/*    */ import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
/*    */ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Configuration
/*    */ public class IndexController
/*    */   implements WebMvcConfigurer
/*    */ {
/* 23 */   private static final Logger logger = LoggerFactory.getLogger(com.wgcloud.controller.IndexController.class);
/*    */ 
/*    */ 
/*    */   
/*    */   public void addViewControllers(ViewControllerRegistry registry) {
/* 28 */     registry.addViewController("/").setViewName("forward:/login/login.html");
/* 29 */     registry.setOrder(-2147483648);
/*    */   }
/*    */ 
/*    */   
/*    */   public void addResourceHandlers(ResourceHandlerRegistry registry) {
/* 34 */     ApplicationHome h = new ApplicationHome(getClass());
/* 35 */     String jarPath = h.getSource().getParentFile().toString();
/* 36 */     logger.debug("jar包路径-----------------" + jarPath);
/* 37 */     registry.addResourceHandler(new String[] { "/resources/**" }).addResourceLocations(new String[] { "file:" + jarPath + "/logo/" });
/* 38 */     WebMvcConfigurer.super.addResourceHandlers(registry);
/*    */   }
/*    */ }


/* Location:              /Users/zhangyongxin/soft-install/wgcloud/wgcloud-v3.3.5/server/bank/wgcloud-server-release.jar!/BOOT-INF/classes/com/wgcloud/controller/IndexController.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */